const fs = require('fs')

fs.readFile('./file/成绩.txt', 'utf-8', (_, str) => {
  let beforeScore = str
  // beforeScore = beforeScore.replace(/=/g, ':').replace(/\s/g, /\n/)
  beforeScore = beforeScore.replaceAll('=', ':').replaceAll(' ', '\n')
  fs.writeFile('./file/成绩-ok.txt', beforeScore, 'utf-8', (_) => {
    console.log('写入成功')
  })
})
